package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;

// 字节类型适配器
public class ByteParameterAdapter implements ParameterAdapter<Byte> {

    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, Byte data) throws SQLException {
        ps.setByte(index, data);
    }
}
